#!/bin/bash

d="`date +"%d-%b-%Y"`"
mkdir data/$d
mkdir data/$d/ontologies
mkdir data/$d/structures
groovy downloadOBOOntologies.groovy data/$d/ontologies
for i in data/$d/ontologies/*; do mkdir data/$d/structures/`basename $i`; groovy MakeFuncStructure -i $i -o data/$d/structures/`basename $i`; done
scp -r data/$d bioonto:/mnt/ontofunc/obodata/
